package fatworm.storage.types;

public class Types
{
    final public static int INT = java.sql.Types.INTEGER;
    final public static int FLOAT = java.sql.Types.FLOAT;
    final public static int CHAR = java.sql.Types.CHAR;
    final public static int DATETIME = java.sql.Types.DATE; // XXX
    final public static int BOOLEAN = java.sql.Types.BOOLEAN;
    final public static int TIMESTAMP = java.sql.Types.TIMESTAMP;
    final public static int DECIMAL = java.sql.Types.DECIMAL;
    final public static int VARCHAR = java.sql.Types.VARCHAR;
    // used for SString
    final public static int OTHER = java.sql.Types.OTHER;

    public static boolean isVarType(int type)
    {
        switch (type)
        {
            case DECIMAL :
            case VARCHAR :
                return true;
        }
        return false;
    }
}
